# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-rope
pkgver=0.20.0
pkgrel=1
pkgdesc="Python refactoring library"
url="https://github.com/python-rope/rope"
arch="noarch"
license="LGPL-3.0-only"
depends="python3"
makedepends="py3-setuptools"
source="https://github.com/python-rope/rope/archive/$pkgver/rope-$pkgver.tar.gz"
builddir="$srcdir/rope-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m unittest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
2c05d68b2bdfca7d8f29798e24ba92984c1e5db45b61173160c915c68e3cdb527c4b265f69eeb971ad4f774c33b506feaebf5ce0068aa2fd9f1d062e002b86e4  rope-0.20.0.tar.gz
"
